#games {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 20px;
    border: 3px solid var(--primary-color);
    margin-top: 30px;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.games-list::-webkit-scrollbar {
    width: 8px;
}

.games-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.games-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 204, 0, 0.8);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.games-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 204, 0, 1);
}

.game-item {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary-color);
    padding: 10px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.4);
}

.game-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
    cursor: url('https://gcore.jsdelivr.net/gh/zygame1314/zygame1314page@1.3.0/images/cursors/Rath Link.cur'), auto;
}

.game-item .game-info {
    flex-grow: 1;
    cursor: url('https://gcore.jsdelivr.net/gh/zygame1314/zygame1314page@1.3.0/images/cursors/kushala text select.cur'), auto;
}

.game-item .game-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: url('https://gcore.jsdelivr.net/gh/zygame1314/zygame1314page@1.3.0/images/cursors/kushala text select.cur'), auto;
}

.game-item .game-info p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #aaa;
    cursor: url('https://gcore.jsdelivr.net/gh/zygame1314/zygame1314page@1.3.0/images/cursors/kushala text select.cur'), auto;
}

.game-item a.button {
    align-self: flex-start;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    cursor: url('https://gcore.jsdelivr.net/gh/zygame1314/zygame1314page@1.3.0/images/cursors/Rath Link.cur'), auto;
}

#games h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: url('https://gcore.jsdelivr.net/gh/zygame1314/zygame1314page@1.3.0/images/cursors/kushala text select.cur'), auto;
}

#games h2 button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    font-family: 'Zpix', 'Press Start 2P', monospace;
    cursor: url('https://gcore.jsdelivr.net/gh/zygame1314/zygame1314page@1.3.0/images/cursors/Rath Link.cur'), auto;
}

#games h2 button:hover {
    color: var(--secondary-color);
}

.game-item img.default-cover {
    object-fit: contain;
    background-color: #2a2a2a;
}

.steam-games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.steam-games-list .game-item {
    width: 48%;
    margin-bottom: 4%;
    padding: 0;
    border: none;
    background: none;
}

.steam-games-list .game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.4);
}

.steam-games-list .game-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: none;
}

#pongGame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}